diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-30 13:31:25 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-30 13:33:23 +0100 |
| commit | 3b71fb59ab9613d73733d6c82cac8ddd74bb5101 (patch) | |
| tree | 2364b1daea2f7b609ea3cddb8da91dcfe39c41fd /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 209cafc729a344efa002c545cae1f944061709d3 (diff) | |
Store params and vals as locals in Patio
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 5 insertions, 10 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 7699d572..b405a2b5 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -4,8 +4,7 @@ Compilation unit elements: function "shed__function__f__0" visibility=private - params=(("closurePointer__0" data-ptr)) - locals=(("local__a" int) ("local__b" int)) + locals=((param "closurePointer__0" data-ptr) (val "local__a" int) (val "local__b" int)) return-type=int body=( ( @@ -27,14 +26,10 @@ Compilation unit elements: ) Locals: - * ("closure__f__0" int) - * ("closurePointer__f__0" data-ptr) - * ("local__a" int) - * ("local__b" int) - -Args: - * local__a - * local__b + * (val "closure__f__0" int) + * (val "closurePointer__f__0" data-ptr) + * (param "local__a" int) + * (param "local__b" int) Instructions: |
